Page({
      data: {
          condition:false,
          fei:300,
          feiban:150,
          num:false
      },
      switchchang(e){
          console.log(e)
          this.setData({
              condition:e.detail.value
          })
      },
      formsubmit(e){
          let num=this.data.num
          let fei=300
          let feiban=150
          let bd=Number(e.detail.value.property)
          if(bd>200000){
              if(num==true){
                  fei+=(bd-200000)*0.005
                  fei*=2
              }else if(num==false){
                  fei+=(bd-200000)*0.005
              }
          }else{ 
              if(num==true){
                  fei=300
                  fei*=2
              }else if(num==false){
                  fei=300
              }
    
          }
          console.log(num)
          
          feiban=fei/2
          fei=fei.toFixed(2)
          feiban=feiban.toFixed(2)
          this.setData({
              fei,feiban
          })
      },
      wxr(e){
          let fei=Number(this.data.fei)
          let feiban=fei/2
          if(e.detail.value){
              this.setData({
                  num:true
              })
              fei*=2
              feiban*=2
    
          }else if(!e.detail.value){
              this.setData({
                  num:false
              })
              fei/=2
              feiban/=2
          }
          this.setData({
              fei:fei.toFixed(2),feiban:feiban.toFixed(2)
          })
      }
    })